{% extends "base_portadmin.html" %}

{% block object-tools %}
	<ul class="object-tools">
		<li><a href="/portadmin/systems/" class="historylink">JRC systems list</a></li>
	</ul>
{% endblock %}

{% block content %}

	<form action="" method="post">
	{% csrf_token %}
	<table>
	{% for field in form %}
		<tr>
			<th>{{ field.label }}</th>
			{% if field.name == "source_code" %}
				<td>
					<textarea cols=80 rows=15 name="{{ field.name }}">{{ field.value|default:"# Source goes here" }}</textarea>
				</td>
			{% else %}
				<td>{{ field }}</td>
			{% endif %}
		</tr>
	{% endfor %}
	</table>
	<input type="submit" class="default" value="Save" />
	<input type="button" onclick="document.location.href='/portadmin/systems/'; return false;" value="JRC systems list" />
	</form>

{% endblock %}